package Integrity;


public class MunicipalityStatement extends Statement{
	
	MunicipalityStatement(String UserID, String ResultID,String BillingSiteID, StatementData extract) {
		super(UserID, ResultID,BillingSiteID, extract);
		elec_used= extract.get_scraped_elec_used();
		elec_chrg = extract.get_scraped_elec_chrg();
		water_used= extract.get_scraped_water_used();
		water_chrg =extract.get_scraped_water_chrg();
		sew_chrg= extract.get_scraped_sew_chrg();
		ref_chrg = extract.get_scraped_ref_chrg();
	}
        
        /**
    * Public constructor for MunicipalityStatement. Used for creating statements 
    * to go to the user interface, by the database manager.
    * @author Johann Jungbauer
    * @param UserID
     * @param BillingSiteID
     * @param strings
     * @param doubles
     * @param elec_used
         * @param elec_chrg
         * @param water_used
         * @param water_chrg
         * @param sew_chrg
         * @param ref_chrg
    * @return A MunicipalityStatement object.
    */
        public MunicipalityStatement(String UserID,String BillingSiteID, java.util.Date date,String[] strings
                , double[] doubles, String elecUsed, double elecChrg, String waterUsed
                , double waterChrg, double sewChrg, double refChrg)
        {
            super(UserID, BillingSiteID, date, strings,doubles);
            elec_used = elecUsed;
            elec_chrg = elecChrg;
            water_used = waterUsed;
            water_chrg = waterChrg;
            sew_chrg = sewChrg;
            ref_chrg = refChrg;
	}
        
	public String get_elec_used() {
		return elec_used;
	}
	public double get_elec_chrg() {
		return elec_chrg;
	}
	public String get_water_used() {
		return water_used;
	}
	public double get_water_chrg() {
		return water_chrg;
	}
	public double get_sew_chrg() {
		return sew_chrg;
	}
	public double get_ref_chrg() {
		return ref_chrg;
	}
	@Override public String toString() {
		StringBuilder resultToString = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		resultToString.append(super.toString());
		resultToString.append(""+ NEW_LINE);
		resultToString.append("MUNICIPALITY STATEMENT SPECIFIC DATA "+ NEW_LINE);
		resultToString.append("elec_used: " + elec_used + NEW_LINE);
		resultToString.append("water_used: " + water_used + NEW_LINE);
		resultToString.append("elec_chrg: " + Double.toString(elec_chrg) + NEW_LINE);
		resultToString.append("water_chrg: " + Double.toString(water_chrg) + NEW_LINE);
		resultToString.append("sew_chrg: " + Double.toString(sew_chrg) + NEW_LINE);
		resultToString.append("ref_chrg: " + Double.toString(ref_chrg) + NEW_LINE);
		return resultToString.toString();
	}
	private String elec_used="";
	private double elec_chrg;
	private String water_used="";
	private double water_chrg;
	private double sew_chrg;
	private double ref_chrg;
}
